package com.zygh.lz.service.impl;

import com.zygh.lz.service.StaffEquipageService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zygh.lz.dao.StaffEquipageMapper;
import com.zygh.lz.entity.StaffEquipage;

@Service
public class StaffEquipageServiceImpl extends ServiceImpl<StaffEquipageMapper, StaffEquipage> implements StaffEquipageService {

    @Override
    public boolean saveStaffEquipage(String gpsid, String warningSignal) {
        StaffEquipage staffEquipage = new StaffEquipage();
        staffEquipage.setGpsid(gpsid);
        staffEquipage.setPoliceNumber(warningSignal);
        return this.save(staffEquipage);
    }
}
